package com.aishua.fire.jpa.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;

import com.aishua.fire.common.anno.EntityDesc;

import lombok.Data;

@EntityDesc(desc="账户组+权限组关联访问控制表")
@Entity
@Data
public class AccountteamPermteam implements Serializable {

	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private AccountteamPermteamId accountteamPermteamId;
	
	/**
	 * 创建时间
	 */
	@Column(nullable = false,columnDefinition="DATETIME COMMENT '创建时间'")
	private Date createDate;
	
	/**
	 * 类型,允许/禁止
	 */
	@Column(nullable = false,columnDefinition="varchar(16) COMMENT 'url权限,允许allow,禁止disable'")
	private String authType;
	/**
	 * 数据库访问权限,增,删,改,查
	 */
	@Column(nullable = true,columnDefinition="varchar(16) COMMENT '数据库权限,add/delete/update/find'")
	private String authAction;
}
